package com.ccc3gc.mysystem.service;

import com.ccc3gc.mysystem.VO.DeliveryOrderVO;
import com.ccc3gc.mysystem.VO.OrderVO;
import com.ccc3gc.mysystem.VO.ReceiveOrderVO;
import com.ccc3gc.mysystem.VO.SearchParamVO;
import com.ccc3gc.mysystem.bean.Order;

import java.util.List;

public interface OrderService {
    List<OrderVO> selectOrderList(Order order);
    //根据SearchParamVO查询订单
    List<Order> selectOrderListUser(SearchParamVO searchParamVO);
    //根据SearchParamVO查询接单订单
    List<ReceiveOrderVO> selectReceiveOrder(SearchParamVO searchParamVO);
    //根据SearchParamVO查询配送订单
    List<DeliveryOrderVO> selectDeliveryOrder(SearchParamVO searchParamVO);
    //根据订单Id查询订单详情
    OrderVO selectOrderByOrderId(int orderId);
    int instertOrder(Order order);

    int updateOrder(Order order);
    int deleteOrderById(int orderId);
    int deleteOrderByIds(List<Integer> orderIds);
}
